package com.example.moonbucks1127;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class RegisterActivity extends AppCompatActivity {

    private EditText edit_register_username;
    private EditText edit_register_password;
    private Button btn_register;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        findView();
        click();
    }

    public void findView(){
        edit_register_username=findViewById(R.id.edit_register_username);
        edit_register_password=findViewById(R.id.edit_register_password);
        btn_register=findViewById(R.id.btn_register);
    }

    public void click(){
        final String username = edit_register_username.getText().toString();
        final String password = edit_register_password.getText().toString();
        
        btn_register.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(RegisterActivity.this, "", Toast.LENGTH_SHORT).show();
                startActivity(new Intent(RegisterActivity.this,LoginActivity.class));
            }
        });

    }
}
